<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
/////////////////////////////////////////////////////
function show_userback(type,user,phone)
{
   mytop=(screen.availHeight-370)/2;
   myleft=(screen.availWidth-682)/1;
   window.open("admin.php?ac="+type+"&fileurl=sms&user="+user+"&phone="+phone,"","height=300,width=300,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

</script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=23;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<div id="MainBody">
<table class="TableList" width="100%">
<form name="search" method="get" action="admin.php">
			<input type="hidden" name="ac" value="user" />
			<input type="hidden" name="do" value="list" />
			<input type="hidden" name="fileurl" value="communication" />
	<tr class="TableContent">
		<td align="center" style="padding:3px">
			    关键字：
        	<input type="text" name="keyword" size="15" value="<?=urldecode($keyword)?>" />
        	&nbsp;部门：
        	<select name="department">
						  <option value="" selected="selected"></option>
						 <?=GET_DEPARTMENT_PUBLIC_LIST(0,$department,0)?>
			              </select>&nbsp;
						  用户组：<select name="usergroup">
						  <option value="" selected="selected"></option>
						 <?=get_inc_usergroup_options($usergroup)?>
			              </select>
        		&nbsp;&nbsp;<input type="submit" name="btnRefresh" id="button" value="查 找"/></td>
	</tr>
	
<!--  <tr class="TableControl">
		<td rowspan=2 align="center">
			 </td>
	</tr> -->
    </form>		
</table>
<form name="update" method="post" action="#">
<div id="CodeWrap">
<div id="TabSwitch">
<ul>

<li><a href="admin.php?ac=index&fileurl=communication&type=1">个人通迅录</a></li>
<li><a href="admin.php?ac=index&fileurl=communication&type=2">公共通迅录</a></li>
<li class="active"><a href="admin.php?ac=user&fileurl=communication">公司通迅录</a></li>
<li><img src="themes01/default/images/addicon.gif" width="10" height="10" />&nbsp;<a href="admin.php?ac=add&fileurl=communication&type=1">新增通迅录</a></li>
</ul>

 
</div>
<div id="CodeShowBlockWrap">
<div id="QueryBar">
<div id="FilterWrap">
<label for="FilterStatus"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%"></td>
    <td width="85%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<?=showpage($num,$pagesize,$page,$url)?></td>
  </tr>
</table>
</label>
</div>
</div>

<div id="CodeShowBlock">
<table cellpadding="0" cellspacing="0" class="data-box"><thead>
<tr class="border-in">
<th class="title"><div>姓名</div></th>
<th class="status"><div>性别</div></th>
<th class="scale"><div>联系电话</div></th>
<th class="scale"><div>传真号码</div></th>
<th class="scale"><div>手机</div></th>
<th class="scale"><div>电子邮箱</div></th>
<th class="scale"><div>职位</div></th>
<th class="scale"><div>所属部门</div></th>
</tr>
</thead><tbody>

<?foreach ($result as $row) {?>
<tr class="data-box-row">
<td class="title"><?=$row['name']?> &nbsp;&nbsp;[<a href="javascript:;" onClick="show_userback('sms_online','<?=$row['name']?>','<?=$row['phone']?>')" class="sl zoom"  >发短消息</a>]</td>
<td class="status"><?=$row['sex']?></td>
<td class="scale"><?=$row['tel']?></td>
<td class="scale"><?=$row['fax']?></td>
<td class="scale"><?=$row['phone']?><?php if($row['phone']!=''){?>&nbsp;&nbsp;[<a href="javascript:;" onClick="show_userback('phone_online','<?=$row['name']?>','<?=$row['phone']?>')" class="sl zoom"  >发信息</a>]<?php }?></td>
<td class="scale"><?=$row['email']?></td>
<td class="scale"><?=$row['position']?></td>
<td class="scale"><?=get_inc_department_name($row['departmentid'])?></td>
					
						
						</tr>
<?}?>


</tbody></table>
 
</div>
<div id="PageControl">
<div class="page-control">
<div class="border-in">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%"></td>
    <td width="85%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<?=showpage($num,$pagesize,$page,$url)?></td>
  </tr>
</table>
  

</div>
</div>
</div>
</div>
</div>
 </form>
</div>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
